import type { PageModuleTypes } from '../types/index';

/** 福利券 */
const modules: PageModuleTypes[] = [
  {
    path: '/',
    name: 'memberCoupon',
    navigationStyle: 'custom',
    navigationBarTitleText: '福利券',
    enablePullDownRefresh: true,
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'memberCouponDetails',
    name: 'memberCouponDetails',
    navigationStyle: 'custom',
    navigationBarTitleText: '详情',
    enablePullDownRefresh: true,
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'createMemberCoupon',
    name: 'createMemberCoupon',
    navigationStyle: 'custom',
    navigationBarTitleText: '创建福利券',
    children: [
      {
        path: 'couponChooseHistory',
        name: 'couponChooseHistory',
        navigationStyle: 'custom',
        navigationBarTitleText: '创建',
      },
      {
        path: 'couponSelectPermissions',
        name: 'couponSelectPermissions',
        navigationStyle: 'custom',
        navigationBarTitleText: '选择谁可以看',
        backgroundColor: '#ffffff',
      },
      {
        path: 'couponSelectPosition',
        name: 'couponSelectPosition',
        navigationStyle: 'custom',
        navigationBarTitleText: '选择职务',
      },
    ],
  },
  {
    path: 'cancelAfterVerification',
    name: 'cancelAfterVerification',
    navigationStyle: 'custom',
    navigationBarTitleText: '核销',
    backgroundColor: '#f5f5f5',
    children: [
      {
        path: 'list',
        name: 'cancelAfterVerificationList',
        navigationStyle: 'custom',
        navigationBarTitleText: '核销',
        backgroundColor: '#f5f5f5',
      },
    ],
  },
  {
    path: 'recordCouponCollection',
    name: 'recordCouponCollection',
    navigationStyle: 'custom',
    navigationBarTitleText: '领券记录',
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'receiveCouponResult',
    name: 'receiveCouponResult',
    navigationStyle: 'custom',
    navigationBarTitleText: '领取优惠券',
  },
  {
    path: 'createCouponResult',
    name: 'createCouponResult',
    navigationStyle: 'custom',
    navigationBarTitleText: '创建优惠券',
  }
];

export default modules;
